package view;

import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.StringItem;

public class View2 extends MVCComponent {
	
	private Command cmd_back = new Command("Back", Command.BACK, 2);

	private Form form;
	
	public void commandAction(Command cmd, Displayable display) {
		if(cmd == cmd_back) {
			showCallerView();
		}
	}

	protected void createView() {
		form = new Form("");
		form.addCommand(cmd_back);
		
		StringItem sItem = new StringItem("", "Nothing here");
		form.append(sItem);
	}

	public Displayable getScreen() {
		return form;
	}

	protected void initModel() {
	
	}

	protected void updateView() {
	
	}

}